<template>
  <div>
    <el-table style="width: 100%" size="small" :data="tableData">
      <el-table-column prop="date" width="180" fixed label="时间">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.date"
            :rows="1"
            resize="none"
            :disabled="true"
          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机组运行情况">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机组发电量">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="风室压力">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="一次风机变频">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="一次风左支路风量">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="空预器二级差压左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="沸下温度后2">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="沸上温度后2">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="燃烧室出口温度右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="燃烧室出口温度左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="炉膛出口温度左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="炉膛出口温度右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过前温度左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过前温度右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过后温度左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过后温度右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过前压力左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过前压力右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过后压力左">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高过后压力右">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column
        prop="address"
        width="180"
        label="低温过热器前温度（左）"
      >
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column
        prop="address"
        width="180"
        label="一次风中空预器出口烟压（右）"
      >
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="排烟压力（左）">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="布袋进口烟温">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column
        prop="address"
        width="180"
        label="二级喷水减温器出口气温"
      >
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="汽轮机进汽温度">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="汽机主汽压">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机凝汽器真空">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机组负荷">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机排汽温度">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机#1高加出口温度">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="高压给水母管压力">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column prop="address" width="180" label="机平均效率">
        <template #default="{ row }" v-if="isEdit">
          <el-input
            type="textarea"
            v-model="row.address"
            :rows="1"
            resize="none"

          />
        </template>
      </el-table-column>
      <el-table-column align="center" label="操作" v-if="!isEdit">
        <template #default="{ row }">
          <el-button size="mini" @click="$emit('handleEdit',row)">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    tableData: {
      type: Array,
      default: () => []
    },
    // 当前状态是否是可编辑状态
    isEdit: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
    }
  },
  created () {

  },
  watch: {
    // addDate: {
    //   handler() {
    //     this.productDailyTimeFn();
    //   },
    //   immediate: false,
    // },
    // machine(val) {
    //   if (val == "1") {
    //     this.queryParams.codes = [
    //       "crew_status_1",
    //       "crew_power_1",
    //       "crew_press_1",
    //       "crew_frequency _1",
    //       "crew_air_volume_left_1",
    //       "crew_preheater_press_diff_left_1",
    //       "crew_boil_down_temper_1 ",
    //       "crew_boil_up_temper_1",
    //       "crew_combustion_out_temper_right_1",
    //       "crew_combustion_out_temper_left_1",
    //       "crew_burner_out_temper_left_1",
    //       "crew_burner_out_temper_right_1",
    //       "crew_before_temper_left_1",
    //       "crew_before_temper_right_1",
    //       "crew_after_temper_left_1",
    //       "crew_after_temper_right_1",
    //       "crew_befor_press_left_1",
    //       "crew_befor_press_right_1",
    //       "crew_after_press_left_1",
    //       "crew_after_press_right_1",
    //       "crew_lts_before_temper_left_1",
    //       "crew_preheater_out_smoke_press_right_1",
    //       "crew_smoke_press_left_1",
    //       "crew_smoke_temper_in_1",
    //       "crew_desuperheater_temper_out_1",
    //       "crew_turbine_in_ temper_1",
    //       "crew_turbine_press_1",
    //       "crew_condenser_vacuum_1",
    //       "crew_load_1",
    //       "crew_temper_1",
    //       "crew_high_out_temper_1",
    //       "crew_water_supply_press_1",
    //       "crew_avg_effective_1",
    //     ];
    //   } else if (val == "2") {
    //     this.queryParams.codes = [
    //       "crew_status_2",
    //       "crew_power_2",
    //       "crew_press_2",
    //       "crew_frequency _2",
    //       "crew_air_volume_left_2",
    //       "crew_preheater_press_diff_left_2",
    //       "crew_boil_down_temper_2 ",
    //       "crew_boil_up_temper_2",
    //       "crew_combustion_out_temper_right_2",
    //       "crew_combustion_out_temper_left_2",
    //       "crew_burner_out_temper_left_2",
    //       "crew_burner_out_temper_right_2",
    //       "crew_before_temper_left_2",
    //       "crew_before_temper_right_2",
    //       "crew_after_temper_left_2",
    //       "crew_after_temper_right_2",
    //       "crew_befor_press_left_2",
    //       "crew_befor_press_right_2",
    //       "crew_after_press_left_2",
    //       "crew_after_press_right_2",
    //       "crew_lts_before_temper_left_2",
    //       "crew_preheater_out_smoke_press_right_2",
    //       "crew_smoke_press_left_2",
    //       "crew_smoke_temper_in_2",
    //       "crew_desuperheater_temper_out_2",
    //       "crew_turbine_in_ temper_2",
    //       "crew_turbine_press_2",
    //       "crew_condenser_vacuum_2",
    //       "crew_load_2",
    //       "crew_temper_2",
    //       "crew_high_out_temper_2",
    //       "crew_water_supply_press_2",
    //       "crew_avg_effective_2",
    //     ];
    //   }
    // },
  }
}
</script>

<style>
</style>
